package com.chuanke.ckfamily.dao.finance;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.chuanke.ckfamily.dao.finance.model.FamilyDayIncome;
import com.weijie.core.BaseDao;

public interface FamilyDayIncomeDao extends BaseDao<FamilyDayIncome> {
	/**
	 * 根据家族id和时间查询唯一记录
	 * 
	 * @param param
	 * @return
	 * @throws Exception
	 */
	public FamilyDayIncome getFamilyCountRecords(@Param("param") Map<String, Object> param);

	/**
	 * 根据时间查询待分配记录
	 * 
	 * @param date
	 * @return
	 * @throws Exception
	 */
	public List<FamilyDayIncome> getNeedCountRecords(@Param("param") Map<String, Object> param);

	public FamilyDayIncome findByDate(@Param("fanilyId") Long fanilyId, @Param("date") String tday);

}